package com.qidian.mes.qc.service;

import com.qidian.mes.pojo.QcDefect;
import com.qidian.mes.util.pojo.MESResult;

public interface DefectService {
    /**
     * 根据ID删除数据
     * @param defectId
     * @return
     */
    MESResult delete(Long defectId);

    /**
     * 根据id查找数据
     * @param defectId
     * @return
     */
    MESResult getById(Long defectId);
    /**
     * 根据ID修改数据
     * @param qcDefect
     * @return
     */
    MESResult update(QcDefect qcDefect);
    /**
     * 保存数据
     * @param qcDefect
     * @return
     */
    MESResult save(QcDefect qcDefect);
    /**
     * 分页查询
     * @param qcDefect
     * @param page
     * @param limit
     * @return
     */
    MESResult list(QcDefect qcDefect,int page,int limit);
}
